﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace blog
{
    public partial class BootstrapASP : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            blog.Class.PageBase pb = new Class.PageBase();
            if (pb.islogin())
                this.butlogin.Visible = false;
            else
                this.butlogin.Visible = true;
        }

        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);
            Page.Header.DataBind();
        }

        protected void butlogin_Click(object sender, EventArgs e)
        {
            Response.Redirect("~/Login.aspx");
        }

  

        protected void butregist_Click(object sender, EventArgs e)
        {
            Response.Redirect("~/Regist.aspx");
        }
    }
}